<h4>tD Login</h4>
<form action="{% url 'thediscussion:loginuser' %}" method="post">
{% csrf_token %}
<input type="text" name="userNameTextField" value=""><br/><br/>
<input type="password" name="passwordTextField" value=""><br/><br/>
<input type="submit" name="logIn" value="Please, Log me in!"><br/><br/>
</form>
{% if latest_thread_list %}
    <ul>
    {% for discussionthread in latest_thread_list %}
        <li><a href="{% url 'thediscussion:detail' discussionthread.id %}">{{ discussionthread.subject }}</a><br/>
		<p>{{ discussionthread.discussionbody }}</p>
		</li>
		      
    {% endfor %}
    </ul>
{% else %}
    <p>No threads are available.</p>
{% endif %}


